package com.hulk.boot.config;

import java.util.Properties;

import org.mybatis.spring.annotation.MapperScan;
import org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration;
import org.mybatis.spring.mapper.MapperScannerConfigurer;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 作者 cmt
 * @version 创建时间：2016年7月15日 下午2:53:22 类说明
 */

@Configuration
@AutoConfigureAfter(MybatisAutoConfiguration.class)
@MapperScan(basePackages = { "com.hulk.boot.persistence.mapper" }, sqlSessionTemplateRef = "sqlSessionTemplate")
public class MyBatisMapperScannerConfig {
	
	
	
	/* @Bean
	    public MapperScannerConfigurer mapperScannerConfigurer() {
	        MapperScannerConfigurer mapperScannerConfigurer = new MapperScannerConfigurer();
	        mapperScannerConfigurer.setSqlSessionFactoryBeanName("sqlSessionFactory");
	        mapperScannerConfigurer.setBasePackage("com.hulk.boot.persistence.mapper");
	        Properties properties = new Properties();

	        return mapperScannerConfigurer;
	    }*/

}
